package com.youlu.campus.base.exception;

import lombok.Data;

/**
 * @author : [dengbo]
 * @className : CommonException
 * @description : [描述说明该类的功能]
 * @createTime : [2023/5/9 15:26]
 */
@Data
public class CommonException extends RuntimeException {
    private Integer code;

    private String message;

    public CommonException(Integer code, String message) {
        super(message);
        this.code = code;
        this.message=message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
